package mesweb.mesweb.service.impl.produce;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.produce.ProduceProcedureResource;
import mesweb.mesweb.mapper.produce.ProduceProcedureResourceMapper;
import mesweb.mesweb.service.produce.IProduceProcedureResourceService;
import mesweb.mesweb.vo.produce.ProduceMaterialBom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 工序设备资源关系
 * @Author: jeecg-boot
 * @Date:   2021-08-28
 * @Version: V1.0
 */
@Service
public class ProduceProcedureResourceServiceImpl extends ServiceImpl<ProduceProcedureResourceMapper, ProduceProcedureResource> implements IProduceProcedureResourceService {

    @Autowired
    private ProduceProcedureResourceMapper produceProcedureResourceMapper;
    @Override
    public IPage<ProduceMaterialBom> getProduceMaterialBom(Page page, QueryWrapper queryWrapper) {
        return produceProcedureResourceMapper.getProduceMaterialBom(page,queryWrapper);
    }

    @Override
    public List<ProduceMaterialBom> getProduceMaterialBom(QueryWrapper queryWrapper) {
        return produceProcedureResourceMapper.getProduceMaterialBom(queryWrapper);
    }
}
